<div class="col-sm-12">
  <div class="box">
    <div class="box-body">
      <div class="col-sm-12 nopadding-left">
        <div class="bottom12">
          <ul class="nav nav-tabs">
            <li id='chooseTabOne' class="{{if (eq chooseTabFlag 'chooseTabOne') 'active' ''}}"><a href="#box_tab1" data-toggle="tab" {{action 'chooseTab' "chooseTabOne"}}>
               <span class="hidden-inline-mobile">护理服务</span></a>
            </li>
            <li id='chooseTabTwo' class="{{if (eq chooseTabFlag 'chooseTabTwo') 'active' ''}}"><a href="#box_tab2" data-toggle="tab" {{action 'chooseTab' "chooseTabTwo"}} >
             <span class="hidden-inline-mobile">用药服务</span></a>
            </li>
            <li id='chooseTabThree' class="{{if (eq chooseTabFlag 'chooseTabThree') 'active' ''}}"><a href="#box_tab3" data-toggle="tab" {{action 'chooseTab' "chooseTabThree"}} >
             <span class="hidden-inline-mobile">呼叫服务</span></a>
            </li>
          </ul>
            <div class="clear"></div>
        </div>
      </div>
    <div id="datatable1_wrapper" class="dataTables_wrapper form-inline" role="grid">
    	<div class="row">
        <!--搜索-->
        <!--搜索-->
        <div class="col-sm-3">
          <div class="input-group full-width">
            {{#power-select class="input-group-content full-width" placeholder='老人姓名' options=customerList selected=defaultCustomer searchField="sortName"
            noMatchesMessage="没有相关内容"	allowClear=true	onchange=(action "selectCustomer" ) as |customer|}}
              {{customer.name}}
            {{/power-select}}
          </div>
        </div>
        <div class="col-sm-3 nopadding-left">
          <div class="input-group full-width">
            {{#power-select class="input-group-content full-width" placeholder='执行人' options=staffList  selected=staff searchField="sortName"
            noMatchesMessage="没有相关内容"	allowClear=true	onchange=(action "selectStaff" ) as |staff|}}
              {{staff.name}}
            {{/power-select}}
          </div>
        </div>
        <div class="col-sm-6 nopadding-left">
            {{callbusi/time-search class="inline-block" text='执行时间' dateShow=dateShow chooseDate=chooseDate search="search"
            submmit="submmit" emptied='emptied' changeBeginDateAction='changeBeginDateAction' changeEndDateAction='changeEndDateAction'}}
        </div>
    	</div>
      <table id="datatable1" cellpadding="0" cellspacing="0" border="0"  class="datatable table table-bordered table-hover dataTable mt15" aria-describedby="datatable1_info">
        <thead>
          <tr role="row">
            {{#if (eq chooseTabFlag "chooseTabOne")}}
              <th rowspan="1" colspan="1" width="">护理项目</th>
              <th rowspan="1" colspan="1" width="">项目类型</th>
              <th rowspan="1" colspan="1" width="">老人姓名</th>
              <th rowspan="1" colspan="1" width="">规定时间</th>
              <th rowspan="1" colspan="1" width="">执行时间</th>
            {{/if}}
            {{#if (eq chooseTabFlag "chooseTabTwo")}}
              <th rowspan="1" colspan="1" width="">老人姓名</th>
              <th rowspan="1" colspan="1" width="">所服药品</th>
              <th rowspan="1" colspan="1" width="">规定时间</th>
              <th rowspan="1" colspan="1" width="">执行时间</th>
            {{/if}}
            {{#if (eq chooseTabFlag "chooseTabThree")}}
              <th rowspan="1" colspan="1" width="">老人姓名</th>
              <th rowspan="1" colspan="1" width="">关联随时任务</th>
              <th rowspan="1" colspan="1" width="">呼叫时间</th>
              <th rowspan="1" colspan="1" width="">处理时间</th>
            {{/if}}
            <th rowspan="1" colspan="1" width="">违规类型</th>
            <th rowspan="1" colspan="1" width="">生成时间</th>
            <th rowspan="1" colspan="1" width="">执行人</th>
          </tr>
        </thead>
        {{#if warningList}}
        {{log "warningList in hbs:" warningList}}
      <tbody role="alert" aria-live="polite" aria-relevant="all" class="">
          {{#each warningList as |warning|}}
          <tr class="gradeA odd">
            {{#if (eq chooseTabFlag "chooseTabOne")}}
              <td class="ellipsis">{{warning.nursingPlanDetail.item.item.name}}</td>
              <td class="ellipsis">{{warning.nursingPlanDetail.item.item.serviceType.typename}}</td>
              <td class="ellipsis">{{warning.customer.name}}</td>
              <td class="ellipsis">{{warning.setTime}}</td>
              <td class="ellipsis center">{{warning.exeTimeString}}</td>
            {{/if}}
            {{#if (eq chooseTabFlag "chooseTabTwo")}}
              <td class="ellipsis">{{warning.customer.name}}</td>
              <td class="ellipsis">{{warning.customerDrugProject.customerDrug.drug.name}}</td>
              <td class="ellipsis">{{warning.setTime}}</td>
              <td class="ellipsis center">{{warning.exeTimeString}}</td>
            {{/if}}
            {{#if (eq chooseTabFlag "chooseTabThree")}}
              <td class="ellipsis">{{warning.customer.name}}</td>
              <td class="ellipsis">{{warning.remark}}</td>
              <td class="ellipsis">{{warning.callTimeString}}</td>
              <td class="ellipsis center">{{warning.exeTimeString}}</td>
            {{/if}}
            <td class="ellipsis">{{warning.statusString}}</td>
            <td class="ellipsis">{{warning.createTimeString}}</td>
            <td class="ellipsis center">{{if warning.employee.name warning.employee.name '——'}}</td>
      	  </tr>
          {{/each}}
       </tbody>
       {{else}}
       {{/if}}
        </table>
        {{#if warningList }}
            {{page-numbers content=warningList showFL=true numPagesToShow=5}}
            {{else}}
                <h1 class="col-sm-12 center unTask"></h1>
        {{/if}}
      </div>
    </div>
  </div>
  <!-- /BOX -->
</div>
